<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<import type='css' file="css.manager" /> 
<import type='js' file="js.jquery" />
<load href="/Public/js/jquery.ld.js" /> 
<script type="text/javascript">
$(function(){
	$(".depar_select").ld({
		ajaxOptions : {"url" : '/User/getDepartmentList'},
		style : {"width" : 145},
		defaultParentId : 0,
		<notempty name="Think.session.ul_department">
		texts : ['{:get_depname_byid($_SESSION['ul_department'])}','{:get_depname_byid($_SESSION['ul_group'])}'],
		</notempty>
		field : {
			region_id : "id",
			region_name :"name",
			parent_id : "pid"
		}
	}); 
	$('.if_del').click(function(){
		 if(!confirm( "您真的要删此用户吗？\n您也可以选择禁用此用户。 ")) return false;
	})
	$('.if_prohibit').click(function(){
		 if(!confirm( "您确定要禁用此用户吗？ ")) return false;
	})
})
</script>
</head>
<body>
<div class="explain_public">
	<a href="__URL__/add">添加用户</a>
</div>
<table width="98%" class="manager_public_tab" align="center" width="80%" border="0" cellpadding="0" cellspacing="1" >
	<tr class="head"><td colspan='20' align="center">用户列表</td></tr>
	<tr class="td_head">
		<td>用户名</td>
		<td>Email</td>
		<td>身份</td>
		<td>注册时间</td>
		<td>状态</td>
		<td>操作</td>
	</tr>
	<volist name="list" id="vo">
	<tr>
		<td>{$vo.username}</td>
		<td>{$vo.email}</td>
		<td>
		<switch name="vo.auth">
			<case value="1">普通用户</case>
			<case value="2">总管理员</case>
		</switch>
		</td>
		<td>{:date('Y-m-d',$vo['create_time'])}</td>
		<td>
		<switch name="vo.state">
			<case value="-1">已删除</case>
			<case value="0">已禁用</case>
			<case value="1">正常</case>
		</switch>
		</td>
		<td>
			[<a href="__URL__/update/uid/{$vo.uid}">修改</a>] 
			[<a class="if_prohibit" href="__URL__/prohibit/uid/{$vo.uid}">禁用</a>] 
			[<a class="if_del" href="__URL__/del/uid/{$vo.uid}">删除</a>]
		</td>
	</tr>
	</volist>
	<tr>
		<td colspan="20" align="right">{$page}</td>
	</tr>
</table>
</body>
</html>